
package com.jf.cloud.order.constant;

/**
 * 分表类型
 * @author zz
 */
public enum OrderShardingTableType {

    /**
     * 0.默认
     */
    DEFAULT(0, ""),
    /**
     * 退款
     */
    REFUND(1, "order_refund"),
    /**
     * 采购订单
     */
    PURCHASE(1, "purchase"),
    ;
    private final Integer num;
    private final String name;

    public Integer value() {
        return num;
    }

    public String getName() {
        return name;
    }

    OrderShardingTableType(Integer num, String name){
        this.num = num;
        this.name = name;
    }

}
